import re

pat = re.search(r"'.*'", "('精装',)").group()
print(pat)


old_str = "('2008-07',)"
print(id(old_str))
new_str = old_str.replace('(', '').replace(')', '').replace(',', '')
print(id(new_str))


res = bool(re.search(r'^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$', '  4@qq.com'.strip()))
print(res)